import request from '@/utils/request'

// 查询站点路线列表
export function listRouteSite(query) {
  return request({
    url: '/bus/routeSite/list',
    method: 'get',
    params: query
  })
}

// 查询站点路线详细
export function getRouteSite(routeId) {
  return request({
    url: '/bus/routeSite/' + routeId,
    method: 'get'
  })
}

// 新增站点路线
export function addRouteSite(data) {
  return request({
    url: '/bus/routeSite',
    method: 'post',
    data: data
  })
}

// 修改站点路线
export function updateRouteSite(data) {
  return request({
    url: '/bus/routeSite',
    method: 'put',
    data: data
  })
}

// 删除站点路线
export function delRouteSite(routeId) {
  return request({
    url: '/bus/routeSite/' + routeId,
    method: 'delete'
  })
}

// 导出站点路线
export function exportRouteSite(query) {
  return request({
    url: '/bus/routeSite/export',
    method: 'get',
    params: query
  })
}